package excel;

import java.io.File;

import jxl.Cell;
import jxl.Sheet;
import jxl.Workbook;

public class ReadXLS {
	public static void main(String args[]) {
		try {
			Workbook book = Workbook.getWorkbook(new File("d:/1.xls"));
			String dos = "";
			// 获得第一个工作表对象
			Sheet sheet = book.getSheet(0);
			for(int i=0;i<613;i++){
				// 得到第一列第一行的单元格
				Cell cell1 = sheet.getCell(0, i);
				String result = cell1.getContents();
				System.out.println(result);
				dos += "www." + result + ",";
			}
			System.out.println(dos);
			book.close();
		} catch (Exception e) {
			System.out.println(e);
		}
	}
}
